package com.hung.pro.iFlashCards.component;

import javax.swing.*;
import java.awt.*;

/**
 * Created by IntelliJ IDEA.
 * User: hung
 * Date: 2008/05/01
 * Time: 23:45:14
 * To change this template use File | Settings | File Templates.
 */
public class DefaultListCellEditor extends DefaultCellEditor implements IListCellEditor {
    public DefaultListCellEditor(final JCheckBox checkBox) {
        super(checkBox);
    }

    public DefaultListCellEditor(final JComboBox comboBox) {
        super(comboBox);
    }

    public DefaultListCellEditor(final JTextField textField) {
        super(textField);
    }

    public Component getListCellEditorComponent(JList list, Object value, boolean isSelected, int index) {
        delegate.setValue(value);
        return editorComponent;
    }
}
